package com.his.registration.service;

import com.his.common.PageBean;
import com.his.registration.pojo.Employee;
import com.his.registration.pojo.Register;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @BelongsProject: workspace-idea
 * @BelongsPackage: com.his.registration.service
 * @Author: ZhangYing
 * @Date: 2023/7/1 14:52
 * @Description:
 */
public interface RegisterService {
    //插入患者信息
    public int insert(Register register);

    //获得最后的病历号并加1
    public int getCaseNum();

    //多条件模糊查询患者信息
    public List<Register> selectForPatients(String caseNumber, String realName,int visitState);

    //根据病历号进行退号：修改visitState为4
    public int updateVisitState(String caseNumber,int visitState);

    //根据看诊状态进行显示
    public PageBean selectByVisitState(int visitState, int page, int pageSize);

    //根据id拿到患者信息
    public Register selectById(int id);

    //根据病历号得到挂号id
    public int getRegistId(String caseNumber);

    //确定的查询
    public Register getOne(String caseNumber,String realName);
}
